Rename "osname" → "stateroot"
authorColin Walters <walters@verbum.org>
Fri, 14 Apr 2017 14:34:38 +0000 (10:34 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 24 Apr 2017 16:09:51 +0000 (16:09 +0000)
I never really liked the term "osname". I feel "stateroot" is a *lot* clearer,
since the osname/stateroot mostly just holds `/var`. Further it avoids the `os`
prefix which is already overloaded.

Some of the existing docs already talked about "operating system state", which
further reinforces this.

There's *lot* more things than this which reference the term "osname", but I
don't want to change *everything* yet in this patch in case we decide to do
something different - this just gets the highlights.

Closes: #794
Approved by: jlebon

docs/manual/atomic-upgrades.md
docs/manual/deployment.md
docs/manual/introduction.md
man/ostree-admin-config-diff.xml
man/ostree-admin-deploy.xml
man/ostree-admin-os-init.xml
man/ostree-admin-switch.xml
man/ostree-admin-upgrade.xml
man/ostree.xml
src/libostree/ostree-deployment.c

index a60656a85b2eed9f984520be7f3e42fee688eb5d..341372d027ee8757ebfbe6b3d399e2623c7700fb 100644 (file)
@@ -55,7 +55,7 @@ checking it back out of the repo into a deployment.
 ## Assembling a new deployment directory
 
 Given a commit to deploy, OSTree first allocates a directory for
-it.  This is of the form `/boot/loader/entries/ostree-$osname-$checksum.$serial.conf`.
+it.  This is of the form `/boot/loader/entries/ostree-$stateroot-$checksum.$serial.conf`.
 The `$serial` is normally `0`, but if a
 given commit is deployed more than once, it will be incremented.
 This is supported because the previous deployment may have
index 51554c4f4bbf958343cbcf26e3076f08a87edd16..76d057014431f562e2cb82ed407118b9436bb89a 100644 (file)
@@ -8,23 +8,24 @@ operating systems (accessible via `ostree admin`).  The core content of these op
 are treated as read-only, but they transparently share storage.
 
 A deployment is physically located at a path of the form
-`/ostree/deploy/$osname/deploy/$checksum`.
+`/ostree/deploy/$stateroot/deploy/$checksum`.
 OSTree is designed to boot directly into exactly one deployment
 at a time; each deployment is intended to be a target for
 `chroot()` or equivalent.
 
-### "osname": Group of deployments that share /var
+### "stateroot" (AKA "osname"): Group of deployments that share /var
 
-Each deployment is grouped in exactly one "osname".  From above, you
-can see that an osname is physically represented in the
-`/ostree/deploy/$osname` directory.  For example, OSTree can allow
-parallel installing Debian in `/ostree/deploy/debian` and Red Hat
-Enterprise Linux in `/ostree/deploy/rhel` (subject to operating system
-support, present released versions of these operating systems may not
-support this).
+Each deployment is grouped in exactly one "stateroot" (also known as an "osname");
+the former term is preferred.
 
-Each osname has exactly one copy of the traditional Unix `/var`,
-stored physically in `/ostree/deploy/$osname/var`.  OSTree provides
+From above, you can see that an stateroot is physically represented in the
+`/ostree/deploy/$stateroot` directory. For example, OSTree can allow parallel
+installing Debian in `/ostree/deploy/debian` and Red Hat Enterprise Linux in
+`/ostree/deploy/rhel` (subject to operating system support, present released
+versions of these operating systems may not support this).
+
+Each stateroot has exactly one copy of the traditional Unix `/var`,
+stored physically in `/ostree/deploy/$stateroot/var`.  OSTree provides
 support tools for `systemd` to create a Linux bind mount that ensures
 the booted deployment sees the shared copy of `/var`.
 
@@ -81,7 +82,7 @@ files.
 
 When a tree is deployed, it will have a configuration file generated
 of the form
-`/boot/loader/entries/ostree-$osname-$checksum.$serial.conf`.  This
+`/boot/loader/entries/ostree-$stateroot-$checksum.$serial.conf`.  This
 configuration file will include a special `ostree=` kernel argument
 that allows the initramfs to find (and `chroot()` into) the specified
 deployment.
index c88d6c14f1eb2bee8d97f4fe761cc66ce773fe38..6cde8dddf6e4a58fc832d95c50b098037f773a69 100644 (file)
@@ -97,7 +97,7 @@ parallel install inside an existing OS or distribution
 occupying the physical `/` root.
 
 On each client machine, there is an OSTree repository stored
-in `/ostree/repo`, and a set of "deployments" stored in `/ostree/deploy/$OSNAME/$CHECKSUM`.
+in `/ostree/repo`, and a set of "deployments" stored in `/ostree/deploy/$STATEROOT/$CHECKSUM`.
 Each deployment is primarily composed of a set of hardlinks
 into the repository.  This means each version is deduplicated;
 an upgrade process only costs disk space proportional to the
index 69209e49659d58a5c89a9ed2652c943b2b913756..256b02feff155a8e915207564f4fb0f82f9ad6e3 100644 (file)
@@ -66,10 +66,10 @@ Boston, MA 02111-1307, USA.
 
         <variablelist>
             <varlistentry>
-                <term><option>--os</option>="OSNAME"</term>
+                <term><option>--os</option>="STATEROOT"</term>
 
                 <listitem><para>
-                    Use a different operating system root than the current one.
+                    Use a different operating system stateroot than the current one.
                 </para></listitem>
             </varlistentry>
         </variablelist>
index ef96203ce62d8f5fcb1b8ba605c31b827019e31a..347a4ba919c1443e58946ef190f0786c57328d64 100644 (file)
@@ -66,7 +66,7 @@ Boston, MA 02111-1307, USA.
 
         <variablelist>
             <varlistentry>
-                <term><option>--os</option>="OSNAME"</term>
+                <term><option>--os</option>="STATEROOT"</term>
 
                 <listitem><para>
                     Use a different operating system root than the current one.
index 77bd126af960dca33051b0c46081e4387fbe7dfb..10f02ad62b75f83ea287abbd1d95efe0964e4cd5 100644 (file)
@@ -49,7 +49,7 @@ Boston, MA 02111-1307, USA.
 
     <refsynopsisdiv>
             <cmdsynopsis>
-                <command>ostree admin os-init</command> <arg choice="req">OSNAME</arg>
+                <command>ostree admin os-init</command> <arg choice="req">STATEROOT</arg>
             </cmdsynopsis>
     </refsynopsisdiv>
 
@@ -57,15 +57,19 @@ Boston, MA 02111-1307, USA.
         <title>Description</title>
 
         <para>
-            Initializes an new state for an operating system.  Ensures that the core subdirectories of /var (/tmp, /lib, /run, and /lock) exist and initialize the given OSNAME as OSTree root.  Each deployment location is comprised of a single shared <filename>var</filename> and a set of deployments (chroots).
+            Initializes an new stateroot (AKA "osname") for an operating system.
+            Ensures that the core subdirectories of /var (/tmp, /lib, /run, and
+            /lock) exist and initialize the given STATEROOT as OSTree stateroot.
+            Each deployment location is comprised of a single shared
+            <filename>var</filename> and a set of deployments (chroots).
         </para>
     </refsect1>
 
     <refsect1>
         <title>Example</title>
-        <para><command>$ ostree admin os-init gnome-ostree</command></para>
+        <para><command>$ ostree admin os-init exampleos</command></para>
     <programlisting>
-        ostree/deploy/gnome-ostree initialized as OSTree root
+        ostree/deploy/exampleos initialized as OSTree root
     </programlisting>
     </refsect1>
 </refentry>
index 8072d6b92c123524953409082a8340ea5847e234..86f9be403d654aaf3a498eda163cceb0e6168f87 100644 (file)
@@ -66,7 +66,7 @@ Boston, MA 02111-1307, USA.
 
         <variablelist>
             <varlistentry>
-                <term><option>--os</option>="OSNAME"</term>
+                <term><option>--os</option>="STATEROOT"</term>
 
                 <listitem><para>
                     Use a different operating system root than the current one.
index 7766c66e4e6b21b1dc103d33a8a585f56c36de2d..51900b85b2838ff6af4bdf2b1771905141efe605 100644 (file)
@@ -69,7 +69,7 @@ Boston, MA 02111-1307, USA.
 
         <variablelist>
             <varlistentry>
-                <term><option>--os</option>="OSNAME"</term>
+                <term><option>--os</option>="STATEROOT"</term>
 
                 <listitem><para>
                     Use a different operating system root than the current one.
index e31d58b296fb4d1c442cb5b124914d85059a83f9..940d81d7d0f09f9a62a83a8c1cbf3ba9140ad611 100644 (file)
@@ -65,8 +65,9 @@ Boston, MA 02111-1307, USA.
             Instead, they parallel install to the new toplevel
             <filename>/ostree</filename> directory.  Each
             installed system gets its own
-            <filename>/ostree/deploy/<replaceable>osname</replaceable></filename>
-            directory.
+            <filename>/ostree/deploy/<replaceable>stateroot</replaceable></filename>
+            directory.  (<literal>stateroot</literal> is the
+            newer term for <literal>osname</literal>).
         </para>
         <para>
             Unlike <literal>rpm</literal> or
index 67e896bfd66edb8baaeab457c94bc377253c7626..8bdc9b574c8a2e6c60964b7f922b62c3ae22500c 100644 (file)
@@ -39,6 +39,12 @@ ostree_deployment_get_bootcsum (OstreeDeployment *self)
   return self->bootcsum;
 }
 
+/*
+ * ostree_deployment_get_osname:
+ * @self: Deployemnt
+ *
+ * Returns: The "stateroot" name, also known as an "osname"
+ */
 const char *
 ostree_deployment_get_osname (OstreeDeployment *self)
 {